function loadPointsOfInterest(city, filter, pageNumber, pageSize)
{
	if (filter.length>0){
		url="http://api.quocity.com/quocity.svc/json/"+city+"/pointsofinterest/"+filter+"/"+pageNumber+"/"+pageSize+"?callback=?";
	}else{
		url="http://api.quocity.com/quocity.svc/json/"+city+"/pointsofinterest/"+pageNumber+"/"+pageSize+"?callback=?";
	}
	$.getJSON(url,
			
			function (data) {
				$("#pointsOfInterest").empty();
				
				$.each(data, function (i, item) {
					$("#pointsOfInterest").append(getPointsOfInterestItemHtml(item, i));
				});
				$(".Name").click(function(){
					
					var longitude = $(this).parent(".pointOfInterest").find("input[name='longitude']").val();
					var latitude = $(this).parent(".pointOfInterest").find("input[name='latitude']").val();
					//alert(longitude + "," +latitude);

					setCurrentPosition(latitude,longitude);
				});
			});
}

function getPointsOfInterestItemHtml(item, i)
{
	
	$div = $("<div/>").addClass("point_item")
		.append($("<span/>").addClass("Name").html(item.Name))
		.append($("<span/>").addClass("add").html(""))

	return $div;
}


